from django.contrib import admin

from home.models import Gps, Img, Tupian


# Register your models here.
@admin.register(Gps)
class GpsAdmin(admin.ModelAdmin):
    list_display = ['id','name','display_name','weight','url','wailian']
    search_fields = ['name','display_name']
    list_filter = ['is_delete','is_show']

@admin.register(Img)
class ImgAdmin(admin.ModelAdmin):
    list_display = ['id','name',]
    search_fields = ['name','display_name']
    list_filter = ['is_delete','is_show']










@admin.register(Tupian)
class TupianAdmin(admin.ModelAdmin):
    list_display = ['id','name','img','create_time']
    search_fields = ['name']
